class Dog {
  String? name;
  int? age;
  String _intro='狗';
  // 构造函数
  Dog(this.name,this.age);
  // 方法
  eat(something){
    print('$name在吃$something');
  }
  _prinIntro(){
    print(_intro);
  }
}
